namespace Beauty.Net.RabbitMQ
{
    /// <summary>
    /// RabbitMQ配置选项
    /// </summary>
    public class RabbitMQOptions
    {
        /// <summary>
        /// 主机名
        /// </summary>
        public string HostName { get; set; } = "localhost";

        /// <summary>
        /// 端口
        /// </summary>
        public int Port { get; set; } = 5672;

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; } = "guest";

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; } = "guest";

        /// <summary>
        /// 虚拟主机
        /// </summary>
        public string VirtualHost { get; set; } = "/";

        /// <summary>
        /// 心跳间隔（秒）
        /// </summary>
        public int Heartbeat { get; set; } = 60;

        /// <summary>
        /// 连接超时时间（毫秒）
        /// </summary>
        public int ConnectionTimeout { get; set; } = 30000;
    }
}